package com.usian.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.usian.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {

    public List<User> findAll();

    @Select("select userId,userName,password,userType,roleId,userDescription,inputDate from user where userName=#{user.userName} and password=#{user.password} ")
    public List<User> findUser(@Param("user") User user);

}
